/*
 * @Author: 梁 卓
 * @Version: V1.0.0
 * @Date: 2024-09-19 22:39:20
 * @LastEditors: 梁 卓
 * @LastEditTime: 2024-09-19 22:44:35
 * @FilePath: main.js
 * Copyright 2024 Marvin, All Rights Reserved. 
 * 2024-09-19 22:39:20
 * @Description: 
 */
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'
// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia'

const pinia = createPinia()

// 注册ElementPlusIconsVue组件
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
